package pcjavanet.mobilesell.persistence;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import pcjavanet.mobilesell.model.PageBean;
import pcjavanet.mobilesell.model.Purchase;
import pcjavanet.mobilesell.model.PurchaseExample;

public interface PurchaseMapper {
    int countByExample(PurchaseExample example);

    int deleteByExample(PurchaseExample example);

    int deleteByPrimaryKey(Integer dbid);

    int insert(Purchase record);

    int insertSelective(Purchase record);

    List<Purchase> selectByExample(PurchaseExample example);

    Purchase selectByPrimaryKey(Integer dbid);

    int updateByExampleSelective(@Param("record") Purchase record, @Param("example") PurchaseExample example);

    int updateByExample(@Param("record") Purchase record, @Param("example") PurchaseExample example);

    int updateByPrimaryKeySelective(Purchase record);

    int updateByPrimaryKey(Purchase record);

    List<Purchase> getOnePageBeans(@Param("example") PurchaseExample example, @Param("pageBean") PageBean pageBean);

    int getTotalRecords(@Param("example") PurchaseExample example, @Param("pageBean") PageBean pageBean);

    List<Purchase> selectByExamplePage(@Param("example") PurchaseExample example, @Param("pageBean") PageBean pageBean);
}